package com.itheima.exception.statuscode;

import lombok.Getter;

/**
 * @author uf100622
 */

@Getter
public enum ResultCode implements StatusCode {
    SUCCESS(1000, "SUCCESS"),
    FAILED(1001, "FAIL"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    RESPONSE_PACK_ERROR(1003, "response返回包装失败"),
    NULL_ERROR(1004, "空指针异常"),
    NO_AUTHENTICATION(1005, "没有鉴权"),
    UNKNOWN_ERROR(1006, "未捕获的异常"),
    SERVICE_ERROR(1007, "服务器内部错误"),
    DECRYPTION_ERROR(1008, "加密错误");
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
